package org.kl.bf.entity.basic;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kl.bf.entity.AuditableEntity;

//JPA标识
@Entity
@Table(name = "basic_runas_config")
public class RunAsConfig extends AuditableEntity {
	private static final long serialVersionUID = 8668189695740771592L;
	private User fromUser;
	private User toUser;
	private Integer inUse = 1;

	@ManyToOne
	@JoinColumn(name = "from_user_id")
	public User getFromUser() {
		return fromUser;
	}

	public void setFromUser(User fromUser) {
		this.fromUser = fromUser;
	}

	@ManyToOne
	@JoinColumn(name = "to_user_id")
	public User getToUser() {
		return toUser;
	}

	public void setToUser(User toUser) {
		this.toUser = toUser;
	}

	public Integer getInUse() {
		return inUse;
	}

	public void setInUse(Integer inUse) {
		this.inUse = inUse;
	}

}
